import datetime

__s_date = datetime.date(1899, 12, 31).toordinal()-1

def read_xl_date(xldate):

	if isinstance(xldate, float):
		xldate = int(xldate)
		
	return datetime.date.fromordinal(__s_date + xldate)